<template>
  <div>
    <!-- 头部组件 -->
    <van-nav-bar
      title="狗狗主粮"
      left-arrow
      fixed:true
      placeholder:true
      border
      @click-left="a"
    >
      <template #right>
        <van-icon name="search" size="18" />
      </template>
    </van-nav-bar>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    a() {
      this.$router.go(-1);
    },
  },
};
</script>
<style lang="less">
.van-nav-bar .van-icon {
  color: #000;
  font-size: 25px !important;
}
.van-nav-bar__title {
  font-size: 17px;
  font-weight: bolder;
}
</style>
